package dk.pun.dums.client.view;


import java.util.List;

import com.google.gwt.user.client.ui.Widget;

import dk.pun.dums.shared.character.CharacterData;

public interface SelectCharacterView {

	interface Presenter {
		void onCharacterSelected(CharacterData characterData);
		void onCharacterAdded(String name);
		void onCharacterDeleted(CharacterData characterData);
		void onCharacterRenamed(CharacterData characterData, String oldName);
		void onCharacterStatusUpdated(CharacterData characterInfo);
	}

	void setCharacters(List<CharacterData> characterDataList);
	void addCharacter(CharacterData characterData);
	void removeCharacter(CharacterData characterData);
	void refreshCharacterView();

	void setPresenter(Presenter presenter);
	Widget asWidget();
}
